package spring.beanTest.interfaceTest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ServiceImpl1 implements ServiceInterface{
    public int aa = 1;

    @Autowired
//    @Resource
    DaoInterface daoImpl1;
    @Override
    public void test() {
        System.out.println("ServiceImpl1");
        daoImpl1.test();
    }
}
